﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using NDepot.Models.Base;

namespace NDepot.Repository.Base
{
    public interface IRepository<T> where T : PersistentObject
    {
        T GetById(Guid id);
        void Insert(T entity);
        void Update(T entity);
        IList<T> GetAll();
        bool Delete(T entity);
        void DeleteAll();
    }

}
